<div class="row justify-content-center">
    <div class="col-8">
        <div *ngIf="wxConfig">
            <h2><span>Wx Config</span> {{wxConfig.id}}</h2>
            <hr>
            <jhi-alert-error></jhi-alert-error>
            <dl class="row-md jh-entity-details">
                <dt><span>Wx Source Type</span></dt>
                <dd>
                    <span>{{wxConfig.wxSourceType}}</span>
                </dd>
                <dt><span>App Id</span></dt>
                <dd>
                    <span>{{wxConfig.appId}}</span>
                </dd>
                <dt><span>App Sec</span></dt>
                <dd>
                    <span>{{wxConfig.appSec}}</span>
                </dd>
                <dt><span>Aes Key</span></dt>
                <dd>
                    <span>{{wxConfig.aesKey}}</span>
                </dd>
                <dt><span>Token</span></dt>
                <dd>
                    <span>{{wxConfig.token}}</span>
                </dd>
                <dt><span>Merchant Id</span></dt>
                <dd>
                    <span>{{wxConfig.merchantId}}</span>
                </dd>
                <dt><span>Merchant Key</span></dt>
                <dd>
                    <span>{{wxConfig.merchantKey}}</span>
                </dd>
                <dt><span>Hello</span></dt>
                <dd>
                    <span>{{wxConfig.hello}}</span>
                </dd>
                <dt><span>Open Id</span></dt>
                <dd>
                    <span>{{wxConfig.openId}}</span>
                </dd>
                <dt><span>Access Token</span></dt>
                <dd>
                    <span>{{wxConfig.accessToken}}</span>
                </dd>
                <dt><span>Token Expires Time</span></dt>
                <dd>
                    <span>{{wxConfig.tokenExpiresTime}}</span>
                </dd>
            </dl>

            <button type="submit"
                    (click)="previousState()"
                    class="btn btn-info">
                <fa-icon [icon]="'arrow-left'"></fa-icon>&nbsp;<span> Back</span>
            </button>

            <button type="button"
                    [routerLink]="['/wx-config', wxConfig.id, 'edit']"
                    class="btn btn-primary">
                <fa-icon [icon]="'pencil-alt'"></fa-icon>&nbsp;<span> Edit</span>
            </button>
        </div>
    </div>
</div>
